package com.zan.pattern.factory.before;

/**
 * @Author Zan
 * @Create 2024/4/24 19:50
 * @Description : TODO(请用一句话描述该类的功能)
 * @ClassName: Client
 */
public class Client {
    public static void main(String[] args) {
        // 1.创建咖啡店类
        CoffeeStore store = new CoffeeStore();
        // 2.点咖啡
//        Coffee coffee = store.orderCoffee("latte");
        Coffee coffee = store.orderCoffee("american");

        System.out.println(coffee.getName());
    }
}
